import { Module, forwardRef } from '@nestjs/common';
import { DeductionController } from './deduction.controller';
import { DeductionService } from './deduction.service';
import { UserModule } from 'src/user/user.module';
import { NoticeModule } from 'src/notice/notice.module';
import { ProjectModule } from 'src/project/project.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Deduction } from './deduction.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([Deduction]),
    UserModule,
    NoticeModule,
    forwardRef(() => ProjectModule)
  ],
  controllers: [DeductionController],
  providers: [DeductionService],
  exports: [DeductionService]
})
export class DeductionModule { }
